symboliccolor: Allow props == NULL when resolving
authorBenjamin Otte <otte@redhat.com>
Wed, 18 May 2011 10:58:11 +0000 (12:58 +0200)
committerBenjamin Otte <otte@redhat.com>
Wed, 18 May 2011 20:17:58 +0000 (22:17 +0200)
commit9e18d8b448cec5204d4d86434a491ff886567957
tree52ff4acd15df8322cc6142c900ff7511020735b8
parent8111d99183bbe3f10ba4260d319925ae1fc6b96e
symboliccolor: Allow props == NULL when resolving

If props == NULL in gtk_symbolic_color_resolve(), fail sanely for named
colors. The docs used to say it was not allowed to pass NULL for named
color, but that had problems:
1) You do not know if a color was created that way. This is especially
   hard for generic users (like language bindings).
2) It wasn't even true. Colors using other symbolic colors would also
   fail when trying to resolve their named colors, but the docs didn't
   say so.
And because I want to use the function to resolve static colors early
where possible, I changed things.
gtk/gtksymboliccolor.c